package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.entity.Result;
import com.itheima.health.pojo.Role;

import java.util.List;

public interface RoleService {
    PageResult findPage(QueryPageBean queryPageBean);

    void add(Role role, Integer[] perm, Integer[] menu);

    Role findById(Integer id);

    List<Integer> findRoleIdByPermissionId(Integer id);

    List<Integer> findRoleIdByMenuId(Integer id);

    void edit(Role role, Integer[] perm, Integer[] menu);

    void delById(Integer id);

    List<Role> findAll();
}
